class sensor_radar(object):
	"""This sensor supplies an agent with a list of all agents within a certain radius, giving a relative heading and a magnitude to that agent."""
	def __init__(self, agent_num, world_model, max_range=1e1000):
		self.agent_num=agent_num
		self.max_range=max_range
		self.world_model=world_model
	def sense(self):
		return filter(lambda x: x[1] <= self.max_range,self.world_model.rel_agent_locations(self.agent_num))
				
